package org.jeecg.modules.wmhb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wmhb.entity.WmTaskBom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 任务BOM
 * @Author: jeecg-boot
 * @Date:   2025-09-30
 * @Version: V1.0
 */
public interface WmTaskBomMapper extends BaseMapper<WmTaskBom> {
    /**
     * 删除计划BOM
     * @param wmPlanId
     */
    void deletePlanBom(@Param("wmPlanId") String wmPlanId);

    /**
     * 删除计划BOM
     * @param wmPlanId
     * @param wmTaskId
     */
    void deletePlanBomByTask(@Param("wmPlanId") String wmPlanId, @Param("wmTaskId") String wmTaskId);

    /**
     * 根据计划获取报料数据
     * @param planIdList
     * @return
     */
    public List<WmTaskBom> applyBomList(@Param("planIdList") List<String> planIdList);

    /**
     * 根据序号获取BOM
     */
    public WmTaskBom queryBySeriesNo(@Param("seriesNo") String seriesNo);

    /**
     * 根据计划获取报料数据
     * @param planId
     * @return
     */
    public List<WmTaskBom> getPlanApplyBom(@Param("planId") String planId);
}
